﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace P1
{
    class Computer
    {
        private string _name;
        public string Name { get {return this._name; } set { this._name = value; } }
        
        public int Cp()
        {
            Random random = new Random();
            int cp = random.Next(1, 4);
            switch (cp)
            {
                case 1:
                    Console.WriteLine($"{this.Name}：出拳: 剪刀");
                    break;
                case 2:
                    Console.WriteLine($"{this.Name}：出拳: 石头");
                    break;
                case 3:
                    Console.WriteLine($"{this.Name}：出拳: 布");
                    break;
            }
            return cp;
        }
    }
}
